﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KingSite.SyncDB.Core.Entity {
    /// <summary>
    /// 同步实体，即哪个数据库的哪个表的哪些字段要同步到哪里去
    /// </summary>
    public class SyncEntity {
        /// <summary>
        /// SyncId
        /// </summary>
        public int SyncId { get; set; }

        /// <summary>
        /// 源DbId
        /// </summary>
        public int SdbId { get; set; }
        /// <summary>
        /// 源数据库名
        /// </summary>
        public string SdbName { get; set; }
        /// <summary>
        /// 源表Id
        /// </summary>
        public int StId { get; set; }
        /// <summary>
        /// 源表名称
        /// </summary>
        public string StableName { get; set; }
        /// <summary>
        /// 源列Id
        /// </summary>
        public int ScId { get; set; }
        /// <summary>
        /// 源列名
        /// </summary>
        public string SColumnName { get; set; }
        /// <summary>
        /// 源列是否是主键
        /// </summary>
        public bool SCIsPrimaryKey { get; set; }
        /// <summary>
        /// 源列是否自增
        /// </summary>
        public bool SCIsAutoIdentity { get; set; }
        /// <summary>
        /// 目标DbId
        /// </summary>
        public int DdbId { get; set; }
        /// <summary>
        /// 目标数据库名
        /// </summary>
        public string DdbName { get; set; }
        /// <summary>
        /// 目标表Id
        /// </summary>
        public int DtId { get; set; }
        /// <summary>
        /// 目标表名
        /// </summary>
        public string DtableName { get; set; }
        /// <summary>
        /// 目标列Id
        /// </summary>
        public int DcId { get; set; }
        /// <summary>
        /// 目标列名
        /// </summary>
        public string DColumnName { get; set; }
        /// <summary>
        /// 目标列是否是主键
        /// </summary>
        public bool DCIsPrimaryKey { get; set; }
        /// <summary>
        /// 目标列是否自增
        /// </summary>
        public bool DCIsAutoIdentity { get; set; }

    }
}
